#pragma once
#include "DXAMLCommon.h"
#include "CPanel.h"


class CPrintRoot :
	public CPanel
{

private: 
	CPrintRoot(CCoreServices * pCore);
public:
	static HRESULT Create(CDependencyObject * * ppObject, CREATEPARAMETERS * pCreate);
	virtual XUINT32 GetTypeIndex() const;
	virtual XBOOL GetIsLayoutElement();
	HRESULT SetSize(struct XSIZEF pageSize);
protected: 
	virtual HRESULT MeasureOverride(struct XSIZEF availableSize, struct XSIZEF & desiredSize);
	virtual HRESULT ArrangeOverride(struct XSIZEF finalSize, struct XSIZEF & newFinalSize);
private: 
	struct XSIZEF m_sPageSize;

};